i understand how can i activate the joystick:
Code:
joySetCapture(inst->hWnd(),JOYSTICKID1,100,true);
                    joySetCapture(inst->hWnd(),JOYSTICKID2,100,true);
but i see 1 problem: i must activate for all connected joysticks, but how can i get the number of connected joysticks?
and then i must release the joystick(when i don't need it):
Code:
joyReleaseCapture(JOYSTICKID1);
                    joyReleaseCapture(JOYSTICKID2);
i activate the joystick, when the form is created, but i think that isn't the right way to do, because the user can connect the joystick when want's.
please anyone tell me something.